package com.codeZ.AdapterPattern;

import lombok.Data;

/**
 * TF卡实现类
 *
 * @author codeZhang
 * @Date 2024/8/14 14:04
 */
@Data
public class TFCardImpl implements TFCard {

    private String data;
    @Override
    public String read() {
        System.out.println("TF卡读取数据");
        return getData();
    }

    @Override
    public void write(String data) {
        System.out.println("TF卡写入数据：" + data);
        setData(data);
    }
}
